package cn.zk.controller;

import cn.zk.service.IVerificationCodeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Description: 获取验证码
 * @Author: 钟凯
 * @CreateDate: 2021/11/1 15:06
 */
@RestController
public class VerificationCodeController {
    @Resource
    private IVerificationCodeService iVerificationCodeService;

    @GetMapping
    public Map<String,Object> getVerificationCode() {
//        return iVerificationCodeService.getArithmeticCaptcha();
        return iVerificationCodeService.getSpecCaptcha();
    }

}
